package cn.kxm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.kxm.pojo.*;

public interface OutstorageBillMapper2 {
/**
 * 差找全部出库信息
 * @return
 */
	public List<OutstorageBill> findAll(@Param("code")String code,
			@Param("startDate")String start,@Param("endDate")String end,
			@Param("name")String name,@Param("page")Integer page,@Param("size")Integer size);
/**
 * 计算数据库信息数量	
 * @return
 */
	public int getCount(@Param("code")String code,
			@Param("startDate")String start,@Param("endDate")String end,
			@Param("name")String name);
	
	public OutstorageBill findByCode(@Param("code")String code);
	
	public List<Map<String, Object>> getPart(String code);
	/**
	 * 添加订单
	 * @param o
	 * @return
	 */
	public int addoB(OutstorageBill o);
	/**
	 * 添加明细
	 * @param o
	 * @return
	 */
	public int addoBdetail(OutstorageBillDetail obd);
	/*
	 * 修改
	 */
	public int modifyoB(OutstorageBill o);
	public int modifyoBdetail(OutstorageBillDetail obd);
	
	public List<OutstorageBillDetail> getBycode(String code);
	
	public int deleteoB(String code);
	public int deleteoBdetail(String code);
	
	
	
}
